// 播放动画

#ifndef ALICE_ANIMATION_ANIMATION_H_
#define ALICE_ANIMATION_ANIMATION_H_

#include <string>
#include <SDL.h>

namespace alice {

class Animation {
  public:
    Animation() {
      frame_ = 0;
    }
    
    void Update(double delta_time);
    void Draw(int x, int y, int sprite_width, int sprite_height, SDL_RendererFlip flip);
    void SetProps(std::string texture_id, int sprite_row, int frame_count, int frame_duration);

  private:
    std::string texture_id_;
    int sprite_row_;
    int frame_;
    int frame_count_;
    int frame_duration_;
};

}

#endif // ALICE_ANIMATION_ANIMATION_H_